package com.onion.log;

import org.slf4j.LoggerFactory;

public class Logger {

    private org.slf4j.Logger logger;

    private Logger(Class<?> clazz){
        this(clazz.getName());
    }

    private Logger(String clazzName){
        this.logger = LoggerFactory.getLogger(clazzName);
    }

    public static Logger getLogger(Class<?> clazz){
        return new Logger(clazz);
    }

    public void info(String message){
        logger.info(message);
    }

    public void info(String message, Object[] params){
        logger.info(message, params);
    }

    public void error(String message){
        logger.error(message);
    }

    public void error(String message, Object[] params){
        logger.error(message, params);
    }

    public void error(String message, Object[] params, Throwable e){
        logger.error(message, params, e);
    }

}
